package com.hison.tandainbao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hison.tandainbao.entiy.pojo.domain.TbBlog;
import com.hison.tandainbao.response.ResponseResult;

/**
* @author hison
* @description 针对表【tb_blog】的数据库操作Service
* @createDate 2024-03-21 20:47:41
*/

public interface TbBlogService extends IService<TbBlog> {

    ResponseResult publishBlog(TbBlog blog);

    ResponseResult getAllBlog(Integer current);

    ResponseResult likeBlog(Long id);

    ResponseResult queryMyBlog(Integer current);

    ResponseResult queryBlogById(Long id);

    ResponseResult querBlogLikes(Long id);

    ResponseResult queryBlogFollow(Long max, Integer offset);

    ResponseResult deleteBlog(String id);

    ResponseResult updateStatusByAdmin(String blogId,Integer status);

    ResponseResult getBlogByName(String name);

    ResponseResult getMyLike();

    ResponseResult getAllBlogByAdmin(Integer current, Integer total);
}
